package com.turing.comment.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

import java.text.ParseException;

@FeignClient("system-server")
public interface SystemService {

    /**
     * 50903消息增加(PC，手机)
     * @return
     */
    @PostMapping("/system/message/addSave")
    Result addSave(@RequestBody JSONObject jsonObject) throws ParseException;

    /**
     * 增加商家流水(PC，手机)
     */
    @PostMapping("/system/withdrawal/kwAddSave")
    Result kwAddSave(@RequestBody JSONObject json);

    /**
     * 增加客户流水(系统)
     */
    @PostMapping("/system/withdrawal/cwAddSave")
    Result cwAddSave(@RequestBody JSONObject jsonObject);

    /**
     * 字典详情(PC，手机)
     */
    @GetMapping("/system/dic/getDic")
    Result getDic(@RequestParam("dicId") String dicId, @RequestParam("dicName") String dicName);
}
